Skip to content

Optimize shared_ptr assignment in DoublyBufferedData#2981

Merged
chenBright merged 1 commit into
apache:masterfrom
gitccl:optimize_dbd
Jun 7, 2025
Merged

Optimize shared_ptr assignment in DoublyBufferedData#2981
chenBright merged 1 commit into
apache:masterfrom
gitccl:optimize_dbd

Conversation

@gitccl

@gitccl gitccl commented Jun 5, 2025

Copy link
Copy Markdown
Contributor

What problem does this PR solve?

Problem Summary:

Replaces std::shared_ptr copy assignment with swap in DoublyBufferedData to avoid unnecessary reference count manipulation.

What is changed and the side effects?

Changed:

Side effects:

  • Performance effects:

  • Breaking backward compatibility:


Check List:

@chenBright chenBright left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@chenBright chenBright merged commit d0fa176 into apache:master Jun 7, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants